<#assign edit = bookmark?exists/>
<#setting number_format = "#"/>
<#if edit>
</#if>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>${I18n.getMessage("Bookmarks.for")} - <#if edit>${I18n.getMessage("Update")}<#else>${I18n.getMessage("Insert")}</#if></title>
<meta http-equiv="Content-Type" content="text/html; charset=${encoding}" />
<meta name="description" content="${metaDescription}" />
<meta name="keywords" content="${metaKeywords}, jforum, jforum java, java jforum, java forum, forum, rafael steil, bulletin board, java bb, javabb" />
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/style.css );</style>
</head>

<body>
<form action="${contextPath}/jforum${extension}" method="post" name="search" id="search" accept-charset="${encoding}">
<input type="hidden" name="action" value="<#if edit>updateSave<#else>insertSave</#if>" />
<input type="hidden" name="module" value="${moduleName}" />
<input type="hidden" name="relation_id" value="${relationId}" />
<input type="hidden" name="relation_type" value="${relationType}" />

<#if edit>
	<input type="hidden" name="bookmark_id" value="${bookmark.id}"/>
</#if>
<div id="simple-wrap">
<div id="page-body">

<h3 class="solo">
						<#if edit>
							${I18n.getMessage("Bookmarks.edit")}
						<#else>
							${I18n.getMessage("Bookmarks.add")}
						</#if>
</h3>
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
	
	<fieldset class="fields1 column1">
	<dl>
		<dt><label for="title">${I18n.getMessage("Bookmarks.title")}:</label></dt>
		<dd><input type="text" name="title" id="title"  size="70" maxlength="244" value="${title}" class="inputbox"></dd>
	</dl>
	<dl>
		<dt><label for="description">${I18n.getMessage("Bookmarks.description")}:</label></dt>
		<dd><input type="text" name="description" id="description"  size="70" maxlength="244" value="${description?default("")}" class="inputbox"></dd>
	</dl>
	
	
	<dl>
	   <dt><label for="description">${I18n.getMessage("Bookmarks.publicVisible")}:</label></dt>
	   					<dd><select name="visible">
							<option value="1" <#if edit && bookmark.isPublicVisible()>selected="selected"</#if>>${I18n.getMessage("User.yes")}</option>
							<option value="" <#if edit && !bookmark.isPublicVisible()>selected="selected"</#if>>${I18n.getMessage("User.no")}</option>
						</select></dd>
   
	</dl>
	</fieldset>
	<div class="clear"></div>
	<hr>
	<fieldset class="submit-buttons">
		<input type="submit" value="${I18n.getMessage("Update")}" class="mainoption"/>
	</fieldset>
	<span class="corners-bottom"><span></span></span></div>
</div>
</div>


</form>
</body>
</html>